import {MyRequest} from '@/util/api.js'

//获取题目
export const GetTestList = (list) => MyRequest({
	url: '/tp/user/topic',
	method: 'get',
	data:{list:list}
})

//获取题单
export const GetTestBar = () => MyRequest({
	url: '/tp/user/topic',
	method: 'get'
})

//答题
export const UpTestAns = ({uuid,list}) => MyRequest({
	url:'/tp/user/topic',
	method: 'post',
	data: {uuid:uuid,list:list},
})

//获取答题记录
export const GetTestAns = () => MyRequest({
	url: '/tp/user/topic',
	method: 'get',
})